function Gui() {"use strict";
	//
	this.cammera = new Cammera();
	//
	// Array of selected objects
	this.selectedObjects = [];
}

// Clears list of selected objects
Gui.prototype.clearSelectedObjects = function() {"use strict";
	var i;
	//
	// Marks current objects as not selected
	for ( i = this.selectedObjects.length-1; i>=0; i=i-1) {
		this.selectedObjects[i].setSelected(false);
	}
	//
	// Sets selected object to selected objects list
	this.selectedObjects = [];
};

// Add object to the list of selected objects
Gui.prototype.addSelectedObject = function(newSelectedObject) {"use strict";
	// Marks current objects as not selected
	newSelectedObject.setSelected(true);
	// If object is selectable
	if (newSelectedObject.isSelected()){
		this.selectedObjects.push(newSelectedObject);
	}
};

// Remove object to the list of selected objects
Gui.prototype.removeSelectedObject = function(newSelectedObject) {"use strict";
	var i, newList;
	// Marks current objects as not selected
	newSelectedObject.setSelected(false);
	// If object is selectable
	newList=[];
	for (i=this.selectedObjects.length-1; i>=0; i=i-1) {
		if (this.selectedObjects[i].isSelected()){
			newList.push(this.selectedObjects[i]);
		}
	}
	this.selectedObjects=newList;
};
